/*
package com.wwy.monitor.config;

import com.alibaba.xxpt.gateway.shared.client.http.ExecutableClient;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
@EnableConfigurationProperties
public class EpaasConfig {

    @Bean(initMethod = "init", destroyMethod = "destroy")
    public ExecutableClient createExecutableClient(@Value("${spring.epaas.protocol}") String protocol,
                                                   @Value("${spring.epaas.domainName}") String domainName,
                                                   @Value("${spring.epaas.accessKey}") String accessKey,
                                                   @Value("${spring.epaas.secretKey}") String secretKey) {
        ExecutableClient executableClient = new ExecutableClient();
        executableClient.setProtocal(protocol);
        executableClient.setDomainName(domainName);
        executableClient.setAccessKey(accessKey);
        executableClient.setSecretKey(secretKey);
        return executableClient;
    }
}
*/
